<?php 

$fun = array('sum','sub','mul','div');
shuffle($fun);
echo $function = $fun[1];

echo "\n\n";
echo $function(10,2);
echo "\n\n";

function sum($a, $b) 
{
	return $a+$b;
}

function sub($a, $b) 
{
	return $a-$b;
}

function mul($a, $b) 
{
	return $a*$b;
}

function div($a, $b) 
{
	return $a/$b;
}
